<?php
/**
 * Qx Excel文档导出类
 * 
 * @author Wu Bai Qing<wbqyyicx@gmail.com>
 * @version $Id: CExcel.php 3 2011-09-03 02:47:36Z wbqyyicx $
 * @copyright Copyright (c) 2011 Qx
 */

header("Content-Type: application/vnd.ms-execl");   
header("Content-Disposition: attachment; filename=wbq.xls");   
header("Pragma: no-cache");   
header("Expires: 0");   
/*first line*/   
?>

<table width="100%">
	<tr>
		<td colspan="3" align="center" border="1">测试</td>
	</tr>
	
	<tr>
		<td>1</td>
		<td>2</td>
		<td>3</td>
	</tr>
	
	<tr>
		<td>4</td>
		<td>5</td>
		<td>6</td>
	</tr>
	
	<tr>
		<td>7</td>
		<td>8</td>
		<td>9</td>
	</tr>
	
	<tr>
		<td>=SUM(a2:a4)</td>
		<td>=SUM(b2:b4)</td>
		<td>=SUM(c2:c4)</td>
	</tr>
	
</table>
